@import '../../theme.scss';
@import '../../mixin.scss';
$textShadowColor: #b7950b;

.controller {
  padding: 0 15px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  background-color: $cardColor;
  margin: 0 auto;
  margin-bottom: 2px;
  position: relative;

  > div {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: $iconColor;
    cursor: pointer;
    @include noselect();
    margin: 0 5px;
    &:hover {
      color: rgb(88, 214, 141);
    }
    &.disabled {
      color: $disabled;
      .bp-icon {
        svg {
          color: $disabled;
          fill: $disabled;
        }
      }
    }
    &.warn {
      color: rgb(231, 76, 60);
      .bp-icon {
        svg {
          color: rgb(231, 76, 60);
          fill: rgb(231, 76, 60);
        }
      }
    }
    > span {
      font-size: 13px;
      &:nth-child(2) {
        margin-top: 4px;
      }
    }
    > .bp-icon {
      width: 20px;
      height: 20px;
      cursor: pointer;
      > svg {
        width: 100%;
        height: 100%;
        color: $iconColor;
        fill: $iconColor;
      }
    }
  }

  .disconnected {
    background-color: goldenrod;
    color: red;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    padding: 5px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
}
